package com.hicorp.segment.mapper;

import com.hicorp.segment.mapper.basic.BasicMapper;
import com.hicorp.segment.pojo.po.Receipts;
import com.hicorp.segment.pojo.po.ReceiptsSub;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReceiptsSubMapper extends BasicMapper<ReceiptsSub> {
    List<ReceiptsSub> selectByNo(@Param("no") String no, @Param("tableNameSub") String tableNameSub);

    Integer insertReceiptsSub(ReceiptsSub receiptsSub);

    Integer batchDeleteRecord(@Param("no") String no, @Param("tableName") String tableName);

    Integer batchDeleteRecordMaterial(@Param("no") String no, @Param("itemNo") String itemNo,@Param("tableName") String tableName);



//    Integer updateReceipts(Receipts record);
//
//    Integer batchDeleteRecord(@Param("ids") List<Long> ids, @Param("tableName") String tableName);
}
